<%- include('./common/header') %>

<h1>编辑笔记</h1>
<form method="post" action="http://localhost/update/<%=data._id%>">
    <div class="form-group">
        <label>标题：</label>
        <input type="text" name="title" id="" value="<%=data.title%>">
    </div>
    <div class="form-group">
        <label style="vertical-align: top;">内容：</label>
        <textarea name="content" cols="30" rows="10"><%=data.content%></textarea>
    </div>
    <div class="form-group">
        <button>提交</button>
    </div>
</form>

<%- include('./common/footer')%>